package com.lkm.market2_0.m_imple.steelyardserver.server;



public abstract class AbsReceiverDataHandle {

    private int length;

    private int receiverLengthCount;

    
    @Deprecated
    private int type;

    private int readFrameDataSize;



    public AbsReceiverDataHandle(int length, int type) {
        this.length = length;
        this.type = type;
    }



    public abstract void handleData(ReceiveTask task, byte[] data, int index, int maxLength);

    public int getLength() {
        return length;
    }

    public void setLength(int length) {
        this.length = length;
    }

    public int getReceiverLengthCount() {
        return receiverLengthCount;
    }

    public void setReceiverLengthCount(int receiverLengthCount) {
        this.receiverLengthCount = receiverLengthCount;
    }

    
    @Deprecated
    public int getType() {
        return type;
    }

    @Deprecated
    public void setType(int type) {
        this.type = type;
    }



    public int getReadFrameDataSize() {
        return readFrameDataSize;
    }

    public void setReadFrameDataSize(int readFrameDataSize) {
        this.readFrameDataSize = readFrameDataSize;
    }
}
